.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001; /* z-index更高，确保覆盖主弹窗 */
}
.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  color: #333;
}
.modal-content.large {
  width: 900px;
  max-width: 95%;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #e9ecef;
}
.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #6c757d;
}
.modal-body {
  padding: 16px 24px;
  max-height: 65vh;
  overflow-y: auto;
}
.table-container {
  overflow-x: auto;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
  color: #495057;
  white-space: nowrap;
}
thead th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #343a40;
  position: sticky;
  top: 0;
  z-index: 1;
}
tbody tr:last-child td {
  border-bottom: none;
}
.selectable-row {
  cursor: pointer;
}
.selectable-row:hover {
  background-color: #f1f3f5;
}
.checkbox-col {
  width: 50px;
  text-align: center;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  gap: 10px;
}
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}
.btn-cancel {
  background-color: #6c757d;
  color: white;
}
.btn-confirm {
  background-color: #198754;
  color: white;
}
